import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '../views/Index.vue'
const WallMessage = () => import('../views/WallMessage/WallMessage.vue')
const Photo = () => import('../views/Photo/Photo.vue')

const routes = [
  {
    path: '/',
    redirect: '/wall',
    component: Index,
    children: [
      {
        path: '/wall',
        component: WallMessage
      },
      {
        path: '/photo',
        component: Photo
      }
    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
